import com.fan3bian.service.HelloService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
//    @Resource
//    private HelloService helloService;
    public static void main(String[] args)  {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-main.xml");
        HelloService helloService = (HelloService)applicationContext.getBean("helloService");
        System.out.println(helloService.echo("quao"));
    }
}
